//
//  FCZHomePageController.m
//  EPA
//
//  Created by lanou3g on 16/4/15.
//  Copyright © 2016年 ZFC. All rights reserved.
//

#import "FCZHomePageController.h"
#import "CK_MenuViewController.h"
#import "FCZNetWorkRequestManager.h"
@interface FCZHomePageController ()<MenuClickDelegate>

@end

@implementation FCZHomePageController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
        [CK_MenuViewController getMenuViewController].menuDelegate = self;
    [CK_MenuViewController getMenuViewController].menuArray = [@[@"今日.TODAY",@"话题.TOPICS",@"音乐.MUSIC",@"良品.PRODUCTS",@"订阅.SUBSCRITTON",@"设置.SETTING"]mutableCopy];
    [CK_MenuViewController getMenuViewController].menuDelegate = self;
   
       // [CK_MenuViewController getMenuViewController].backGroudImage = [UIImage imageNamed:@"backGroudPic"];
   [CK_MenuViewController getMenuViewController].userIcon = [UIImage imageNamed:@"未标题-1_50"];
    

    [FCZNetWorkRequestManager requestUrl:[NSURL URLWithString:READLIST_URL] Method:CK_GET Params:nil Result:^(NSData *data, NSURLResponse *response, NSError *error) {
        NSLog(@"%@",data);
        NSLog(@"%@",response);

        NSLog(@"error==%@",error);

    }];
}


//点击抽屉按钮

- (IBAction)didClickLeftBarButtonItem:(id)sender {
    if ([CK_MenuViewController getMenuViewController].isShowing) {
        [[CK_MenuViewController getMenuViewController]hideLeftViewController];
    }else {
        
        [[CK_MenuViewController getMenuViewController]showLeftViewController];
    }
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
